package com.glacier.cloud.user.config;

import com.alibaba.cloud.sentinel.annotation.SentinelRestTemplate;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * date 2023-12-16 19:01
 *
 * @author glacier
 * @version 1.0
 */
@Configuration
public class RestConfig {
    @Bean
    @LoadBalanced
    @SentinelRestTemplate()
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
